//当前播放的音乐的id
const initstate = 0
export default function (state = initstate, action) {
    const { type, payload } = action
    switch (type) {
        case 'LIST_MUSIC_INDEX':
            return payload
        default:
            return state
    }
}